LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-05-2009, 11:45 PM   #1
manya
Member
 
Registered: Apr 2004
Posts: 194

Rep: Reputation: 15
Error GCC - pass 2 [Chapter 5.10]


Can some one help me here to rectify the GCC error.

Configuring in i686-pc-linux-gnu/libstdc++-v3
configure: creating cache ./config.cache
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... //mnt/lfs/sources/GCC/./gcc/xgcc -B//mnt/lfs/sources/GCC/./gcc/ -B/tools/i686-pc-linux-gnu/bin/ -B/tools/i686-pc-linux-gnu/lib/ -isystem /tools/i686-pc-linux-gnu/include -isystem /tools/i686-pc-linux-gnu/sys-include
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/GCC'
make: *** [all] Error 2

I have attached config.log file herewith.

Please let me know if you find anything.
Attached Files
File Type: txt config.txt (5.1 KB, 19 views)
 
Old 09-06-2009, 01:42 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

In chapter 5.5 compiling GCC for the first pass, the book mentions
Code:
tar -jxf ../mpfr-2.4.1.tar.bz2
mv -v mpfr-2.4.1 mpfr
tar -jxf ../gmp-4.3.1.tar.bz2
mv -v gmp-4.3.1 gmp
Did you perform those commands and check that you had a subdirectory mpfr and gmp in $LFS/sources/GCC-4.4.1/ directory? From your log file it looks like gmp.h is missing what makes me assume something went wrong in that step in chapter 5.5.

Mind you, I might be terribly mistaking since I started with LFS a week ago and am not experienced at all with LFS, but in a week I learned some things already.

Kind regards,

Eric
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc compile error in chapter 6.12 efus Linux From Scratch 4 03-12-2010 11:27 AM
GCC Error in chapter 5 ameya.malondkar Linux From Scratch 7 05-08-2008 01:19 AM
gcc check error (in chapter 6) alinsoar Linux From Scratch 0 05-23-2005 04:58 AM
gcc check error (chapter 6 install) vexer Linux From Scratch 4 12-03-2003 09:39 PM
Chapter 5, GCC pass 1: compile failure Electrode Linux From Scratch 0 08-16-2003 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration